/*
This exercise is to understand the idea of subclasses and superclasses in java. This is also called inheritance in general. The idea is to reuse an existing class's code in the subclass.
Do as directed.
*/

//Create a class called Account as follows:
//a private member called balance of type long
//a public method called deposit(long amount) that will add amount to the balance.
//a public method called withdraw(long amount) that will subtract amount from the balance.
//make sure programmatically that amount is not greater than balance in case of withdraw.
//
//Create another class called SavingsAccount (subclass) that 'extends' from the Account class(superclass) 
//add a private member called interest and initialize it with 3.5
//create a method called add_interest() and write the code to add the interest to the balance.


//please write appropriate constructurs in both classed to initialize them. You will need to call 'super' constructor in the subclass here with proper arguments.


// write a method display balance in the subclass to display the balance in the account.

public class Phani{

//create the main method
//create an instance of the subclass with initial balance 20000
// call the method deposit(500)
// call the method withdraw(3000)
// call the method add_interest()
// call the method display_balance()

}
